import requests

url = 'http://localhost/agileone_1.2/index.php'
r = requests.get(url)
print(r.cookies['PHPSESSID'])

url = 'http://localhost/smeoa/index.php?m=login&a=index'
r = requests.get(url)
print(r.cookies)

s = requests.session()
r = s.get(url)
print(r.cookies)

r = s.get(url)
print(r.cookies)

with requests.session() as s:
    r = s.get(url)
    print(r.cookies)

    r = s.get(url)
    print(r.cookies)
